/* eslint-disable */
import DefaultLayoutComponent from 'src/layout/default'
import ChartsBarPageComponent from 'src/pages/charts/bar'
import DetailPageComponent from 'src/pages/detail'
import HomePageComponent from 'src/pages/home'
import SquaresPageComponent from 'src/pages/squares'
import TableBasePageComponent from 'src/pages/table/base'
import TableSortPageComponent from 'src/pages/table/sort'
import FullLayoutComponent from 'src/layout/full'
import ErrorPageComponent from 'src/pages/error'
import UserLoginPageComponent from 'src/pages/user/login'

//买家中心
import DemandAnalysis from 'src/pages/buyer/demandAnalysis'//需求分析
import DemandManagement from 'src/pages/buyer/demandManagement'//需求管理
import projectManagement from 'src/pages/buyer/projectManagement'//项目管理
import CheckMoreComponent from 'src/pages/home/checkMore'


//供应商中心
import OrderManagement from 'src/pages/supplier/orderManagement'//项目管理
import SupplierManagement from 'src/pages/supplier/supplierManagement'//主页管理
import accountManagement from 'src/pages/supplier/accountManagement'//账号管理
import equipmentManagement from 'src/pages/supplier/equipmentManagement'//产品设备管理
import homeManager from 'src/pages/supplier/homeManager'//主页管理
import personalInformation from 'src/pages/supplier/personalInformation'//个人信息
import serviceManagement from 'src/pages/supplier/serviceManagement'//项目服务管理
import solutionManagement from 'src/pages/supplier/solutionManagement'//解决方案管理 
import successfulManagement from 'src/pages/supplier/successfulManagement'//成功方案  
import supplierCertificationManagement from 'src/pages/supplier/supplierCertification'//供应商认证  
import EditPageManagement from 'src/pages/supplier/editPage'//编辑供应商编辑  

import SolutionListManagement from 'src/pages/supplier/solutionList'//解决方案列表
import SuccseeCaseListManagement from 'src/pages/supplier/succseeCaseList'//成功方案列表
import ProjectServicesListManagement from 'src/pages/supplier/projectServicesList'//项目服务
import CommodityListManagement from 'src/pages/supplier/commodityList'//产品列表

//文章管理模块
import articleManagement from 'src/pages/article'//文章列表
import articleDetailManagement from 'src/pages/article/articleDetail'//文章详情


// 首页登陆注册模块
import RegisterManagement from 'src/pages/user/register/register'//文章列表
import ForgetPassManagement from 'src/pages/user/forgetPass/forgetPass'//文章列表


//二级模块
import secSuccessfulCaseManagement from 'src/pages/successfulCase'// 成功案例
import secProductsManagement from 'src/pages/products'// 产品设备
import secProjectServicesManagement from 'src/pages/projectServices'// 项目服务
import secSolutionManagement from 'src/pages/solution'// 解决方案
import secSupplierPlazaManagement from 'src/pages/supplierPlaza'// 供应商广场

// 个人中心模块
import CertificationPageComponent from 'src/pages/supplier/certification'// 供应商广场




// 供应商内容-解决方案(CRUD)、成功案例(CRUD)、项目服务(CRUD)、产品设备(CRUD)

import AddNewSoluteManagement from 'src/pages/supplier/addNewSolute'// 新增解决方案



// 二级详情
import productDetailManagement from 'src/pages/products/productDetail'// 产品设备详情
import projectServicesDetailManagement from 'src/pages/projectServices/projectServicesDetail'// 产品设备详情
import solutionDetailManagement from 'src/pages/solution/solutionDetail'// 产品设备详情
import successfulCaseDetailManagement from 'src/pages/successfulCase/successfulCaseDetail'// 产品设备详情





//成功案例
export const SecsuccessfulCase = {
  name: secSuccessfulCaseManagement.name,
  path: '/successfulCase',
  component: secSuccessfulCaseManagement,
}
//解决方案
export const SecSolution = {
  name: secSolutionManagement.name,
  path: '/solution',
  component: secSolutionManagement,
}
//项目服务
export const SecProjectServices = {
  name: secProjectServicesManagement.name,
  path: '/projectServices',
  component: secProjectServicesManagement,
}
//产品设备
export const SecProducts = {
  name: secProductsManagement.name,
  path: '/products',
  component: secProductsManagement,
}
//供应商广场
export const SecSupplierPlaza = {
  name: secSupplierPlazaManagement.name,
  path: '/supplierPlaza',
  component: secSupplierPlazaManagement,
}


export const DefaultLayout = {
  name: DefaultLayoutComponent.name,
  path: '/',
  component: DefaultLayoutComponent,
}
export const ChartsBar = {
  name: ChartsBarPageComponent.name,
  path: '/charts/bar',
  component: ChartsBarPageComponent,
}
export const Detail = {
  name: DetailPageComponent.name,
  path: '/detail',
  component: DetailPageComponent,
}
export const Home = {
  name: HomePageComponent.name,
  path: '/home',
  component: HomePageComponent,
}
export const CheckMore = {
  name: CheckMoreComponent.name,
  path: '/home/checkMore',
  component: CheckMoreComponent,
}
export const Squares = {
  name: SquaresPageComponent.name,
  path: '/squares',
  component: SquaresPageComponent,

}
export const TableBase = {
  name: TableBasePageComponent.name,
  path: '/table/base',
  component: TableBasePageComponent,

}
export const TableSort = {
  name: TableSortPageComponent.name,
  path: '/table/sort',
  component: TableSortPageComponent,

}
export const FullLayout = {
  name: FullLayoutComponent.name,
  path: '/',
  component: FullLayoutComponent,

}
export const Error = {
  name: ErrorPageComponent.name,
  path: '/error',
  component: ErrorPageComponent,
  meta: {
    auth: false
  }
}
export const UserLogin = {
  name: UserLoginPageComponent.name,
  path: '/user/login',
  component: UserLoginPageComponent,
  meta: {
    auth: false
  }
}
export const Certification = {
  name: CertificationPageComponent.name,
  path: '/supplier/certification',
  component: CertificationPageComponent,
  meta: {
    auth: false
  }
}
//注册
export const Register = {
  name: RegisterManagement.name,
  path: '/user/register/register',
  component: RegisterManagement,
  meta: {
    auth: false
  }
}
//忘记密码
export const ForgetPass = {
  name: ForgetPassManagement.name,
  path: '/user/forgetPass/forgetPass',
  component: ForgetPassManagement,
  meta: {
    auth: false
  }
}

//买家中心模块
//需求分析
export const Analysis = { 
  name: DemandAnalysis.name,
  path: '/buyer/demandAnalysis',
  component: DemandAnalysis,
  meta: {
    auth: false
  }
}
//需求管理
export const Demand = { 
  name: DemandManagement.name,
  path: '/buyer/demandManagement',
  component: DemandManagement,
  meta: {
    auth: false
  }
}
//项目管理
export const Project = { 
  name: projectManagement.name,
  path: '/buyer/projectManagement',
  component: projectManagement,
  meta: {
    auth: false
  }
}

// 供应商模块
// 主页管理
export const Supplier = { 
  name: SupplierManagement.name,
  path: '/page/supplier/supplierManagement',
  component: SupplierManagement,
  meta: {
    auth: false
  }
}
//项目管理
export const Order = { 
  name: OrderManagement.name,
  path: '/page/supplier/orderManagement',
  component: OrderManagement,
  meta: {
    auth: false
  }
}
//账号管理
export const Account = { 
  name: accountManagement.name,
  path: '/page/supplier/accountManagement',
  component: accountManagement,
  meta: {
    auth: false
  }
}
//产品设备管理
export const Equipment = { 
  name: equipmentManagement.name,
  path: '/page/supplier/equipmentManagement',
  component: equipmentManagement,
  meta: {
    auth: false
  }
} 
//主页管理
export const SuupplierHome = { 
  name: homeManager.name,
  path: '/page/supplier/homeManager',
  component: homeManager,
  meta: {
    auth: false
  }
} 
//个人信息
export const PersonalInfo = { 
  name: personalInformation.name,
  path: '/page/supplier/personalInformation',
  component: personalInformation,
  meta: {
    auth: false
  }
} 
//项目服务管理
export const Service = { 
  name: serviceManagement.name,
  path: '/page/supplier/serviceManagement',
  component: serviceManagement,
  meta: {
    auth: false
  }
} 
//解决方案管理
export const Solution = { 
  name: solutionManagement.name,
  path: '/page/supplier/solutionManagement',
  component: solutionManagement,
  meta: {
    auth: false
  }
} 
//成功案例管理
export const Successful = { 
  name: successfulManagement.name,
  path: '/page/supplier/successfulManagement',
  component: successfulManagement,
  meta: {
    auth: false
  }
}
//文章列表
export const Article = { 
  name: articleManagement.name,
  path: '/page/article',
  component: articleManagement,
  meta: {
    auth: false
  }
} 

//供应商认证
export const SupplierCertification = { 
  name: supplierCertificationManagement.name,
  path: '/supplier/supplierCertification',
  component: supplierCertificationManagement,
  meta: {
    auth: false
  }
}

//新增解决方案
export const AddNewSolute = { 
  name: AddNewSoluteManagement.name,
  path: '/supplier/addNewSolute',
  component: AddNewSoluteManagement,
  meta: {
    auth: false
  }
}

//编辑页面
export const EditPage = { 
  name: EditPageManagement.name,
  path: '/supplier/editPage',
  component: EditPageManagement,
  meta: {
    auth: false
  }
}  

//解决方案列表
export const SolutionList = { 
  name: SolutionListManagement.name,
  path: '/supplier/SolutionList',
  component: SolutionListManagement,
  meta: {
    auth: false
  }
}
//成功方案列表
export const SuccseeCaseList = { 
  name: SuccseeCaseListManagement.name,
  path: '/supplier/succseeCaseList',
  component: SuccseeCaseListManagement,
  meta: {
    auth: false
  }
}
//项目服务
export const ProjectServicesList = { 
  name: ProjectServicesListManagement.name,
  path: '/supplier/projectServicesList',
  component: ProjectServicesListManagement,
  meta: {
    auth: false
  }
}
//产品列表
export const CommodityList = { 
  name: CommodityListManagement.name,
  path: '/supplier/commodityList',
  component: CommodityListManagement,
  meta: {
    auth: false
  }
}


// 二级详情
//产品设备详情
export const ProductDetail = { 
  name: productDetailManagement.name,
  path: '/products/productDetail',
  component: productDetailManagement,
  meta: {
    auth: false
  }
}
//项目服务详情
export const ProjectServicesDetail = { 
  name: projectServicesDetailManagement.name,
  path: '/projectServices/projectServicesDetail',
  component: projectServicesDetailManagement,
  meta: {
    auth: false
  }
}
//解决方案
export const SolutionDetail = { 
  name: solutionDetailManagement.name,
  path: '/solution/solutionDetail',
  component: solutionDetailManagement,
  meta: {
    auth: false
  }
}
//成功案例
export const successfulCaseDetail = { 
  name: successfulCaseDetailManagement.name,
  path: '/successfulCase/successfulCaseDetail',
  component: successfulCaseDetailManagement,
  meta: {
    auth: false
  }
}


//成功案例
export const articleDetail = { 
  name:articleDetailManagement.name,
  path: '/article/articleDetail',
  component:articleDetailManagement,
  meta: {
    auth: false
  }
}





export default [{
  name: DefaultLayout.name,
  path: DefaultLayout.path,
  component: DefaultLayout.component,
  children: [ChartsBar, Detail, Home, Squares, TableBase, TableSort,
    Order,
    Supplier,
    Project,
    Demand,
    Analysis,
    //卖家中心
    Successful,
    Solution,
    Service,
    PersonalInfo,
    SuupplierHome,
    Equipment,
    Account,
    CheckMore,
    Article,
    SecSolution,
    SecProjectServices,
    SecProducts,
    SecSupplierPlaza,
    SecsuccessfulCase,
    Certification,
    SupplierCertification,
    AddNewSolute,
    EditPage,
    SolutionList,
    SuccseeCaseList,
    // 二级详情
    ProductDetail,
    ProjectServicesDetail,
    SolutionDetail,
    successfulCaseDetail,
    articleDetail



  ]
}, {
  name: FullLayout.name,
  path: FullLayout.path,
  component: FullLayout.component,Certification,
  children: [Error, UserLogin, Register,
    ForgetPass]
}]